package com.cskaoyan.configuration.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author stone
 * @date 2023/04/21 20:53
 */
@Component
@ConfigurationProperties(prefix = "wd.aliyun")
@Data
public class WdAliyunProperties {
    String accessKeyId; // wd.aliyun.access-key-id
    String accessKeySecret; // wd.aliyun.access-key-secret
    Oss oss; // wd.aliyun.oss
    Sms sms;

    @Data
    public static class Oss {
        String bucket; // wd.aliyun.oss.bucket
        String endPoint; // wd.aliyun.oss.end-point
        String urlPrefix; //wd.aliyun.oss.url-prefix
    }

    @Data
    public static class Sms {
        String signName;
        String templateCode;
    }
}
